package com.hades.example.java.refactoring.after.c11.c11_6_extract_subclass;

public class Example {
    public static void main(String[] args) {
        Employee employee = new Employee(5);
        JobItem jobItem = new LaborItem(4, employee);
        System.out.println(jobItem.getTotalPrice());

        JobItem jobItem2 = new PartsItem(10, 4);
        System.out.println(jobItem2.getTotalPrice());
    }
}
